package com.cea.papyrus.core.treeeditpart.pseudoelement;

import org.eclipse.uml2.uml.BehavioredClassifier;
import org.eclipse.uml2.uml.Namespace;
import org.eclipse.uml2.uml.State;
import org.eclipse.uml2.uml.Transition;

/**
 * Pseudo element for grouping triggers tree edit part 
 */
public class TriggersGroup {
	
	/** parent {@link Namespace}: can be either a {@link BehavioredClassifier}, a {@link Transition} or a {@link State}*/
	protected Namespace parent;
	
	/**
	 * Creates a new TriggersGroup
	 * @param parent the namespace of this triggers group
	 */
	public TriggersGroup(Namespace parent) {
		this.parent = parent;
	}
	
	/**
	 * Returns the {@link Namespace} that owns the triggers
	 * @return the {@link Namespace} that owns the triggers
	 */
	public Namespace getNamespace(){
		return parent;
	}
}